# -*- mode: python ; coding: utf-8 -*-
import os
from PyInstaller.utils.hooks import collect_data_files
pyecharts_data = collect_data_files('pyecharts.datasets')
pyecharts_templates = collect_data_files('pyecharts.render.templates')
third_package_data = collect_data_files('pyecharts.charts')

# Combine all data file collections
all_datas = (
    pyecharts_data + 
    pyecharts_templates + 
    third_package_data
)

a = Analysis(
    ['main_run.py'],
    pathex=[],
    binaries=[],
    datas=all_datas,
    hiddenimports=[],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='赛车强对对',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
    icon='app_icon.ico'
)
